﻿package Message.Public
{
    import Framework.MQ.*;
    import Framework.Serialize.*;

    public class SAutoArenaResult extends IMessageBase
    {
        public var isWin:Boolean;
        public var toEntityName:String;
        public var newRank:int;
        public var oldRank:int;
        public var gold:int;
        public const _type:int = 7029;
        public static var _regist:SAutoArenaResult = new SAutoArenaResult(true);

        public function SAutoArenaResult(param1:Boolean = false)
        {
            if (param1)
            {
                MessageManager.instance().regist(this);
            }
            return;
        }// end function

        override public function getType() : int
        {
            return this._type;
        }// end function

        override public function clone() : IMessageBase
        {
            return new SAutoArenaResult();
        }// end function

        override public function __write(param1:SerializeStream) : void
        {
            param1.writeBool(this.isWin);
            param1.writeString(this.toEntityName);
            param1.writeInt(this.newRank);
            param1.writeInt(this.oldRank);
            param1.writeInt(this.gold);
            return;
        }// end function

        override public function __read(param1:SerializeStream) : void
        {
            this.isWin = param1.readBool();
            this.toEntityName = param1.readString();
            this.newRank = param1.readInt();
            this.oldRank = param1.readInt();
            this.gold = param1.readInt();
            return;
        }// end function

    }
}
